<%@ page contentType="text/html" language="java" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<div class="pageHeader" style="border:1px #B8D0D6 solid">
	<form id="pagerForm" onsubmit="return divSearch(this, 'jbsxBox');" action="projectmanagement/taskQuery" method="post">
		<!-- 隐藏域开始 -->
		<input type="hidden" name="b_T_Flow_ProjectManagement.projectUuid" value="${b_T_Flow_ProjectManagement.projectUuid}" />
		<input type="hidden" name="moduleName" value="${moduleName}" />
		<!-- 隐藏域结束 -->
		<input type="hidden" name="pageNum" value="1" />
		<input type="hidden" name="numPerPage" value="${Pagers.pageSize}" />
		<input type="hidden" name="orderField" value="${Pagers.orderField}" />
		<input type="hidden" name="orderDirection" value="${Pagers.orderDirection}" />
		<input type="hidden" name="lookup" value="${lookup}" />
		<div class="searchBar">
			<table class="searchContent">
				<tr>
					<td>任务名称:
					<input type="text" id="taskName" name="b_T_Ufp_TaskManager.taskName" value="${b_T_Ufp_TaskManager.taskName}"/>
					</td>
					<td>
						所属项目：
						<input type="text" id="respectiveProject" name="b_T_Ufp_TaskManager.respectiveProject" value="${b_T_Ufp_TaskManager.respectiveProject}"/>
					</td>
					<td>
						被指派人：
						<input type="text" id="accusedPeople" name="b_T_Ufp_TaskManager.accusedPeople" value="${b_T_Ufp_TaskManager.accusedPeople}"/>
					</td>
					<td>
					<span class="limit">是否完成：</span>
					<s:select label="" headerKey="2" headerValue="全部" list="#{1:'已完成',0:'未完成'}" name="b_T_Ufp_TaskManager.taskSpeed" cssStyle="height:22px;"/>
					</td>
					<td><div class="buttonActive">
							<div class="buttonContent">
								<button type="submit">搜索</button>
							</div>
						</div></td>
				</tr>
			</table>
		</div>
	</form>
</div>

<div class="pageContent" style="border-left:1px #B8D0D6 solid;border-right:1px #B8D0D6 solid">
	<table class="table" width="99%" layoutH="125" rel="jbsxBox">
		<thead>
			<tr>
				<th width="3%" align="center">序号</th>
				<th width="16%" align="left" orderField="task_name"
					<c:if test="${(Pagers.orderField)== 'task_name'}">class="${Pagers.orderDirection}"
				</c:if>>任务名称</th>
				<th width="7%" align="center" orderField="task_type"
					<c:if test="${(Pagers.orderField)== 'task_type'}">class="${Pagers.orderDirection}"
				</c:if>>任务类型</th>
				<th width="7%" align="center" orderField="sent_people"
					<c:if test="${(Pagers.orderField)== 'sent_people'}">class="${Pagers.orderDirection}"
				</c:if>>指派人</th>
				<th width="7%" align="center" orderField="accused_people"
					<c:if test="${(Pagers.orderField)== 'accused_people'}">class="${Pagers.orderDirection}"
				</c:if>>被指派人</th>
				<th width="18%" align="left" orderField="respective_project"
					<c:if test="${(Pagers.orderField)== 'respective_project'}">class="${Pagers.orderDirection}"
				</c:if>>所属项目</th>
				<th width="7%" align="center" orderField="priority"
					<c:if test="${(Pagers.orderField)== 'priority'}">class="${Pagers.orderDirection}"
				</c:if>>优先级</th>
				<th width="11%" align="center" orderField="task_start_time"
					<c:if test="${(Pagers.orderField)== 'task_start_time'}">class="${Pagers.orderDirection}"
				</c:if>>计划开始时间</th>
				<th width="11%" align="center" orderField="task_end_time"
					<c:if test="${(Pagers.orderField)== 'task_end_time'}">class="${Pagers.orderDirection}"
				</c:if>>计划结束时间</th>
				<th width="5%" align="center" orderField="task_speed"
					<c:if test="${(Pagers.orderField)== 'task_speed'}">class="${Pagers.orderDirection}"
				</c:if>>进度</th>
				 <th width="9%" align="center">操作 </th>
			</tr>
		</thead>
		<tbody>
			<c:forEach items="${Pagers.pageRecords}" var="b_T_Ufp_TaskManager" varStatus="s">
				<tr target="sid_user" rel="1">
					<td>${s.count +Pagers.pageSize*(Pagers.currentPage-1)}</td>
					<td title="${b_T_Ufp_TaskManager.taskName}">
					<a href="projectmanagement/taskManageRead?b_T_Ufp_TaskManager.taskid=${b_T_Ufp_TaskManager.taskid}&flag=1" target="navTab" title="查看任务信息" rel="page1">
						<font color="blue">${b_T_Ufp_TaskManager.taskName}</font>
					</a>
					</td>
					<td>${b_T_Ufp_TaskManager.taskType}</td>
					<td>${b_T_Ufp_TaskManager.sentPeople}</td>
					<td>${b_T_Ufp_TaskManager.accusedPeople}</td>
					<td>
					<a title="查看项目" target="navTab" href="projectmanagement/ProjectmanagementReade?b_T_Flow_ProjectManagement.projectUuid=${b_T_Ufp_TaskManager.projectUuid}&moduleName=project&b_T_Ufp_TaskManager.taskSpeed=0">
				<font color="blue">
					${b_T_Ufp_TaskManager.respectiveProject}</font></a></td>
					<td>${b_T_Ufp_TaskManager.priority}</td>
					<td>${b_T_Ufp_TaskManager.taskStartTime}</td>
					<td>${b_T_Ufp_TaskManager.taskEndTime}</td>
					<td>
					<a href="systemsetting/MyWorkLogList?lookup=1&flag=''&taskid=${b_T_Ufp_TaskManager.taskid}"
							target="dialog" width="1170" height="450">
					<font color="red">${b_T_Ufp_TaskManager.taskSpeed}</font>
					</a>
					</td>
					  <td>
                    <a title="删除" target="ajaxTodo" href="projectmanagement/TaskManageDel?checkIds=${b_T_Ufp_TaskManager.taskid}" class="btnDel">删除</a>
                    <a title="编辑" target="navTab" href="projectmanagement/TaskManageDital?b_T_Ufp_TaskManager.taskid=${b_T_Ufp_TaskManager.taskid}&flag=2&tab=editMsg" rel="editMsg" class="btnEdit">编辑</a>
                    <a title="添加任务" target="navTab" href="projectmanagement/TaskManageDital?projectUuid=${b_T_Ufp_TaskManager.projectUuid}&projectName=${b_T_Ufp_TaskManager.respectiveProject}" rel="editMsg" class="btnAdd">添加任务</a>
                </td>
				</tr>
			</c:forEach>
		</tbody>
	</table>
	<div class="panelBar">
		<div class="pages">
			<span>显示</span> <select class="combox" name="numPerPage" onchange="navTabPageBreak({numPerPage:this.value}, 'jbsxBox')">
				<option value="5" ${pager.pageSize== 5?'selected=\"selected\"':''}>5</option>
				<option value="10" ${pager.pageSize== 10?'selected=\"selected\"':''}>10</option>
				<option value="15" ${pager.pageSize== 15?'selected=\"selected\"':''}>15</option>
				<option value="20" ${pager.pageSize== 20?'selected=\"selected\"':''}>20</option>
				<option value="25" ${pager.pageSize== 25?'selected=\"selected\"':''}>25</option>
				<option value="30" ${pager.pageSize== 30?'selected=\"selected\"':''}>30</option>
				<option value="35" ${pager.pageSize== 35?'selected=\"selected\"':''}>35</option>
				<option value="40" ${pager.pageSize== 40?'selected=\"selected\"':''}>40</option>
				<option value="45" ${pager.pageSize== 45?'selected=\"selected"':''}>45</option>
				<option value="50" ${pager.pageSize== 50?'selected=\"selected\"':''}>50</option>
				<option value="100" ${pager.pageSize== 100?'selected=\"selected\"':''}>100</option>
				<option value="150" ${pager.pageSize== 150?'selected=\"selected\"':''}>150</option>
				<option value="200" ${pager.pageSize== 200?'selected=\"selected\"':''}>200</option>
			</select> <span>条，共${Pagers.totalRecords}条</span>
		</div>
		<div class="pagination" rel="jbsxBox" totalCount="${Pagers.totalRecords}" numPerPage="${Pagers.pageSize}" pageNumShown="10" currentPage="${Pagers.currentPage}"></div>
	</div>
</div>